<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>俄罗斯方块 - Tetris</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>俄罗斯方块</h1>
        </header>
        
        <div class="game-wrapper">
            <div class="game-area">
                <canvas id="gameCanvas" width="300" height="600"></canvas>
            </div>
            
            <div class="sidebar">
                <div class="info-panel">
                    <h2>游戏信息</h2>
                    <div id="score">分数: 0</div>
                    <div id="lines">行数: 0</div>
                    <div id="level">等级: 1</div>
                    <div class="next-block">
                        <h3>下一个方块</h3>
                        <canvas id="nextCanvas" width="100" height="100"></canvas>
                    </div>
                </div>
                
                <div class="controls">
                    <h2>操作说明</h2>
                    <ul class="instructions">
                        <li>← → : 左右移动</li>
                        <li>↑ / W : 旋转</li>
                        <li>↓ / S : 快速下降</li>
                        <li>空格 : 硬下降</li>
                        <li>P : 暂停/继续</li>
                        <li>R : 重新开始</li>
                    </ul>
                </div>
                
                <div class="buttons">
                    <button id="startButton" class="btn btn-primary">开始游戏</button>
                    <button id="pauseButton" class="btn btn-secondary">暂停</button>
                    <button id="resetButton" class="btn btn-secondary">重置</button>
                </div>
            </div>
        </div>
        
        <footer>
            <p>使用 TypeScript 和 Canvas 实现</p>
        </footer>
    </div>
</body>
</html>

